<!--用来添加数据-->
<template name="postSubmit">
    <form class="main form">
        <div class="form-group">
            <!--'url'是给errorClass helper传的参-->
            <label class="control-label {{errorClass 'url'}}" for="url">URL</label>
            <div class="controls">
                <input name="url" id="url" type="text" value="" placeholder="www.yzacg.com" class="form-control"/>
                <span class="help-block">{{errorMessage 'url'}}</span>
            </div>
        </div>
        <div class="form-group">
            <label class="control-label {{errorClass 'title'}}" for="title">Title</label>
            <div class="controls">
                <input name="title" id="title" type="text" value="" placeholder="yzacg" class="form-control"/>
                <span class="help-block">{{errorMessage 'title'}}</span>
            </div>
        </div>
        <input type="submit" value="提交" class="btn btn-primary"/>
    </form>
</template>